#!/bin/bash


getIp(){
    IP=`ifconfig | grep 172.25 | awk '{print $2}'`
		OTHER=`ifconfig | grep 10.252 | awk '{print $2}'`
    if [ ! "$IP" ];then
				echo $OTHER
    else
        echo $IP
    fi
}

getIp

